//1.注册组件[引入组件]
import { createRouter, createWebHashHistory } from 'vue-router'
//@: 表示src文件夹
import Home from '@/components/home/Home'
import City from '@/components/city/City'


//2定义路由
const routes = [
 {
  path:'/',
  component: Home,
  name : 'Home'
    
 } ,
 {
	 path:'/city',
	 component: City,
	 name : 'City'
 }
  
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
